#include"proccessbar.h"
#include<string.h>
#include<unistd.h>

void process()
{
    char buffer[NUM];
    memset(buffer,'\0',sizeof(buffer));
    int cnt=0;
    while(cnt<=100)
    {
        printf("[%-100s][%d%%]\r",buffer,cnt);
        fflush(stdout);
        buffer[cnt++]=S;
        usleep(100000);
    }
    printf("\n");
}

